| class GraphUtilsFunctions for graph processing and iterations.Visibility | Public | Modifiers | static |
Public static functionsvoid ConvertFromDecibels(float[] curve) | Convert a response curve back from decibel scale. | void ConvertToDecibels(float[] curve, float minimum = -100) | Convert a response curve to decibel scale. | float[] ConvertToGraph(Complex[] response, double startFreq, double endFreq, int sampleRate, int resultSize) | Convert a response to logarithmically scaled frequency range. | float[] ConvertToGraph(float[] response, double startFreq, double endFreq, int sampleRate, int resultSize) | Convert a response to logarithmically scaled cut frequency range. | float Correlation(float[] x, float[] y) | Get the correlation between two curves. | float Correlation(float[] x, float[] y, int start, int end) | Get the correlation between a and index. | void ForEachLin<T>(T[] source, double startFreq, double endFreq, FrequencyFunction<T> action) | Perform an action for each frequency value on a linearly scaled graph or spectrum band. | void ForEachLog<T>(T[] source, double startFreq, double endFreq, FrequencyFunction<T> action) | Perform an action for each frequency value on a logarithmically scaled graph or spectrum band. | void Normalize(float[] graph) | Moves a graph's average value to 0. | float[] Scale(float[] source, int newLength) | Scales a graph to another length, while keeping the local peaks. | float[] Scale(float[] source, int newLength, int sourceStart, int sourceEnd) | Scales a partial graph to another length, while keeping the local peaks. | float[] SmoothGraph(float[] samples, float startFreq, float endFreq, float octave = 1 / 3f) | Apply smoothing (in octaves) on a graph drawn with ConvertToGraph(float[], double, double, int, int). | float[] SmoothGraph(float[] samples, float startFreq, float endFreq, float startOctave, float endOctave) | Apply variable smoothing (in octaves) on a graph drawn with ConvertToGraph(float[], double, double, int, int). | float[] SmoothUniform(float[] source, int windowSize) | Smooth any kind of graph with a uniform window size. |
Public variables |